import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { LoginComponent } from './login/login/login.component';
import {PageNotFoundComponent} from "./page-not-found/page-not-found.component";
import {FormsModule} from "@angular/forms";
import {HttpModule} from "@angular/http";
import {AppRoutingModule} from "./app.routing.module";
import {ForgotPwdStep1Component} from "./login/forgot-pwd-step1/forgot-pwd-step1.component";
import {ForgotPwdStep2Component} from "./login/forgot-pwd-step2/forgot-pwd-step2.component";
import {ShareModule} from "./module/share.module";
import {TipService} from "./services/tip.service";
import {ExtendHttpService} from "./services/extend-http.service";
import {SocketService} from "./services/socket.service";
import {MainGuard} from "./grauds/main.guard";
import {HashLocationStrategy, LocationStrategy} from "@angular/common";


@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    ForgotPwdStep1Component,
    ForgotPwdStep2Component,
    PageNotFoundComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    ShareModule,
    AppRoutingModule,
  ],
  providers: [
    TipService,
    ExtendHttpService,
    SocketService,
    MainGuard,
    {
      provide: LocationStrategy,
      useClass: HashLocationStrategy
    },
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
